home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950329-19950528 / 000156_news@columbia.edu_Mon Apr 17 14:45:24 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA24005
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Mon, 17 Apr 1995 10:45:30 -0400
  3. Received: by apakabar.cc.columbia.edu id AA25580
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Mon, 17 Apr 1995 10:45:28 -0400
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Kermit in background
  9. Date: 17 Apr 1995 14:45:24 GMT
  10. Organization: Columbia University
  11. Lines: 35
  12. Message-Id: <3mtuu4$ov4@apakabar.cc.columbia.edu>
  13. References: <3mmrbs$g0m@apakabar.cc.columbia.edu> <3mtnms$cnv@meaddata.meaddata.com>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <3mtnms$cnv@meaddata.meaddata.com>,
  18. Robert Gerdardy <robertg@meaddata.com> wrote:
  19. >The program I have is not written just to accomodate Kermit. Kermit is
  20. >entirely incidental to what I am doing; it justs happens to be the
  21. >protocol available on the other end. I don't want Kermit to be
  22. >sophistcated, I just want it to transfer the file and get out of the
  23. >way. I have asked to have the documentation procured, since that seems to
  24. >be the only way to get any help, but I thought I might get a hand with
  25. >getting this going while I wait for the document. Silly me.
  26. >
  27. I also said:
  28.  
  29. : You can also make it work in the setup you have, but it's more
  30. : complicated.  The best way of doing it is by having your program pass
  31. : the communication line's file descriptor to Kermit in the -l command-line
  32. : option.  Read about this in Chapter 14 of "Using C-Kermit".
  33. :
  34. I don't know your program so I can't tell you exactly, precisely what
  35. to do, but the general idea is to invoke Kermit with the "-l n" option,
  36. where n is the numeric file descriptor of the open communication device.
  37. Presumably your program has this in a variable -- let's say the variable's
  38. name is fd.  Then you can form the Kermit command line like this:
  39.  
  40.   sprintf(buf,"kermit -l %d -r", fd);
  41.  
  42. and then you can exec Kermit with this command line.  Passing it an open
  43. file descriptor is necessary because otherwise it would try to get a
  44. lockfile, set device modes, etc etc, which would (should) not work if your
  45. proram had already opened it in the normal UNIX manner.
  46.  
  47. - Frank
  48.  
  49.  
  50.  
  51.